package com.shixi.shixitraining.shixitraining.ui.tabapply.adapter;

import android.content.Context;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.ui.tabapply.entity.ApplyEmploymentBean;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/7/27.
 */

public class ApplyEmploymentAdapter extends BaseAdapter<ApplyEmploymentBean.DataBean> {
    public ApplyEmploymentAdapter(Context context, List<ApplyEmploymentBean.DataBean> data) {
        super(context, data);
    }

    @Override
    public void convert(BaseRecycleHolder holder, ApplyEmploymentBean.DataBean item, int position) {
        holder.setText(R.id.apply_employ_title_tv,item.getTitle());
        holder.setText(R.id.apply_employ_city_tv,item.getAddress());
        holder.setText(R.id.apply_offical_tv,item.getTime());
        holder.setText(R.id.apply_time_tv,item.getTime());
    }

    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.adapter_apply_employment;
    }
}
